<?php
defined('THINK_PATH') or exit();
return array(
	//'配置项'=>'配置值'
	'SYSTEM_NAME'           => 'TOMOBO | 智慧消防系统',
	'SYSTEM_VERSION'        => '1.0.0[开发版]',
	'SHOW_PAGE_TRACE'       => false,
    'TMPL_ENGINE_TYPE'=>'Think',

// 	'VAR_URL_PARAMS'	=> '_URL_',
    'TMPL_L_DELIM'          => '<{',         // 模板引擎普通标签开始标记
    'TMPL_R_DELIM'          => '}>',         // 模板引擎普通标签结束标记

	/* 模板引擎设置 */
    'VIEW_PATH'=> ROOT_PATH."Application/Admin/Templates/",//视图目录
	'TMPL_ACTION_ERROR'     => 'Common'.DS.'dispatch_jump',   // 默认错误跳转对应的模板文件
	'TMPL_ACTION_SUCCESS'   => 'Common'.DS.'dispatch_jump',   // 默认成功跳转对应的模板文件
	'TMPL_EXCEPTION_FILE'   => 'Common'.DS.'exception',       // 异常页面的模板文件

	/* 后台自定义设置 */
	'SAVE_LOG_OPEN'         => 0,          //开启后台日志记录
	'MAX_LOGIN_TIMES'       => 5,          //最大登录失败次数，防止为0时不能登录，因此不包含第一次登录
	'LOGIN_WAIT_TIME'       => 60*3,         //登录次数达到后需要等待时间才能再次登录，单位：分钟
	'LOGIN_ONLY_ONE'        => 0,          //开启单点登录
	'DATAGRID_PAGE_SIZE'    => 20,         //列表默认分页数
	

	/* 上传配置，优先级低 */
	'FILE_UPLOAD_CONFIG'	=> array(
		//'upload_dir'=>dirname(ROOT_PATH).'/../files/',
		'upload_dir' => '/home/www/mfsfile/files/',
	),

	/* 单独配置，会覆盖全局配置 */
	'FILE_UPLOAD_LINK_CONFIG' => array(
		'exts' => array('zip','rar', 'tar', 'gz', '7z', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx','txt'),
	),
	'FILE_UPLOAD_IMG_CONFIG' => array(
		'exts' => array('jpg','jpeg','gif','png'),
		
	),
	'FILE_UPLOAD_FLASH_CONFIG' => array(
		'exts' => array('swf'),
	),
	'FILE_UPLOAD_MEDIA_CONFIG' => array(
		'exts' => array('avi'),
	),
    /* 模版解析视图变量配置 */
		'TMPL_PARSE_STRING' => array(
				'__STATIC__' => __ROOT__ . '/admin_public',
				'__IMG__'    => __ROOT__ . '/admin_public/images',
				'__CSS__'    => __ROOT__ . '/admin_public/css',
				'__JS__'     => __ROOT__ . '/admin_public/js',
				'__JSON__'   => __ROOT__ . '/admin_public/json',
				'__UPLOAD__' => dirname(ROOT_PATH).'/files/',
				'./Public/upload/'  => __ROOT__ . '/admin_public/upload/',
				'__PUBLIC__'        => __ROOT__ . '/admin_public',
				'__SERVERNAME__'=>SITE_URL,
		),
);
